package com.wjb.xietong.datamanager;

import com.wjb.xietong.server.login.LoginResponse;
import com.wjb.xietong.util.EnumDefine.Login_User_Info;

public class LoginUserDataManager {

	/**
	 * 获取登录用户的信息
	 * 
	 * @return
	 */
	public static Object getLoginUserInfo(Login_User_Info type) {
		LoginResponse loginInfo = WJBDataManager.getLoginResponseInfo();
		Object obj = null;
		switch (type) {
		case COM_ID:
			obj = loginInfo.getCompanyId();
			break;
		case COM_NAME:
			obj = loginInfo.getCompanyName();
			break;
		case CRM_SYS:
			obj = loginInfo.getCrmSys();
			break;
		case EMAIL:
			obj = loginInfo.getEmail();
			break;
		case ID:
			obj = loginInfo.getId();
			break;
		case LOGIN_TYPE:
			obj = loginInfo.getLoginType();
			break;
		case NICK:
			obj = loginInfo.getNick();
			break;
		case PSD:
			obj = loginInfo.getPassword();
			break;
		case USER_NAME:
			obj = loginInfo.getUserName();
			break;
		case WORK_NICK:
			obj = loginInfo.getWorkNick();
			break;
		default:
			break;
		}
		return obj;
	}

}
